package com.yilin.medical.utils;

import java.text.DecimalFormat;

public class JxFormatNumberUtils {
	public static String formatNumber(double d) throws Exception {
		DecimalFormat df = new DecimalFormat("#,##0.00");
		return df.format(d);
	}
	public static String formatNumberNoDecimals(double d) throws Exception {
		DecimalFormat df = new DecimalFormat("#,###");
		return df.format(d);
	}
}
